duplicate = function( x, n=2 ) {
  rep( x, n )
}

